/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FileSystemExplorerPanel.java
 *
 * Created on 15/05/2011, 15:13:21
 */
package rdr.xfiles.explorer.gui;

import rdr.xfiles.explorer.model.FileSystemModel;

/**
 *
 * @author Rubén Ruano
 */
public class FileSystemExplorerPanel extends javax.swing.JPanel {

    /** Creates new form FileSystemExplorerPanel */
    public FileSystemExplorerPanel() {
        initComponents();
        
        setup();
    }

    public void setup() {
        FileSystemModel model = new FileSystemModel();
        treeView.setFileModel(model);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        treeView = new rdr.xfiles.explorer.gui.FileTreeViewPanel();

        treeView.setName("treeView"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(treeView, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(258, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(treeView, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(40, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private rdr.xfiles.explorer.gui.FileTreeViewPanel treeView;
    // End of variables declaration//GEN-END:variables
}
